package com.submit.demo.service;

import com.submit.demo.common.api.CommonPage;
import com.submit.demo.dto.SubmitterInsertParam;
import com.submit.demo.dto.SubmitterReturnData;
import com.submit.demo.model.Submitter;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SubmitterService {
    CommonPage<SubmitterReturnData> getSlist(String tid, Integer currentPage, Integer pageSize);

    CommonPage<SubmitterReturnData> getDlist(String tid, Integer currentPage, Integer pageSize);

    Integer crSub(SubmitterInsertParam param);

    Integer insertFromCsv(String cid, MultipartFile file);

    boolean isSubmitterExist(String phone);

    CommonPage<Submitter> getListWithTag(String cid, List<String> tags, Integer currentPage, Integer pageSize);

    CommonPage<Submitter> getList(Integer currentPage, Integer pageSize);

    Integer del(String sid);
}
